#if defined hash_inc
#endinput
#endif
#define hash_inc

#include <string>

stock bhash(const str[])
{
	new len = strlen(str),
		rhash = 2166136261;
	while (len--)
	{
		new
			ch = str[len];
		if ('a' <= ch <= 'z')
		{
			ch &= ~0x20;
		}
		rhash = (rhash ^ ch) * 16777619;
	}
	return rhash;
}
